<div class="<?php echo $include_file;?>">
	<table border="1" width="600">
		<tr>
			<th>类型名称</th>
			<th>可借阅时长</th>
			<th>图书数量</th>
			<th>编辑</th>
			<th>删除</th>
		</tr>
		<?php foreach($alltypes as $booktype):?>
		<tr>
			<td><?php echo $booktype['typename']?></td>
			<td><?php echo $booktype['days']?></td>
			<td><?php echo $booktype['num']?></td>
			<th><a href="index.php?c=booktype&a=edit&id=<?php echo $booktype['id']?>">编辑</a></th>
			<th><a href="index.php?c=booktype&a=delete&id=<?php echo $booktype['id']?>" onclick="JavaScript:return confirm('你确定要该类型删除吗?')">删除</a></th>
		</tr>
		<? endforeach;?>
	</table>
	<p><?php echo $pageinfo;?></p>
</div>